<?php

namespace app;

use liketp\App;

class BaseController
{
    protected $app;
    protected $request;

    public function __construct(App $app)
    {
        $this->app = $app;
        $this->request = $app->request;
        $this->initialize();
    }

    protected function initialize() {}

    protected function validate($validate, $data)
    {
        return app($validate)->validate($data);
    }
}
